package com.example.spring.demo.common.enums;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2024/12/29 14:39
 **/
public enum TaskStatusEnum {
    TASK_PENDING(0),
    TASK_IN_PROGRESS(1),
    TASK_COMPLETED(2),
    TASK_CANCELLED(3),
    TASK_FAIL(4);

    private final int taskStatusCode;

    TaskStatusEnum(int taskStatusCode) {
        this.taskStatusCode = taskStatusCode;
    }

    public int getTaskStatusCode() {
        return taskStatusCode;
    }
}
